
/**
 * 创建cc直播窗口
 * @param title
 */
function newCreateLiveCC(callback,liveBilling) {
    parent.layer.open({
        type: 2,
        area: winArea,
        btn: ['确定','取消'],
        content:baseloaction +'/admin/liveToV/create/initCCCreateLivePage?liveBilling='+liveBilling,
        skin: 'layui-layer-demo',
        title: '<strong>新建直播间</strong>',
        yes: function (index, layero) {
            var iframeName = layero.find("iframe").attr('name');
            var params = $(parent.window.frames[iframeName].document).find("#saveCreateLiveFrom").serialize();
            var url = "/admin/liveToV/create/saveCcLiveData";
            if(liveBilling==1){
                url = "/admin/liveToV/create/saveCcLiveSmallData";
            }
            debugger;
            $.ajax({
                url:baseloaction + url,
                data:params,
                dataType:"json",
                type:"post",
                success:function (result) {
                    if(result.success==true){
                        if($.isFunction(callback)){
                            callback(result.entity);
                        }
                        parent.layer.close(index);
                    }else{
                        parent.icModale(0, result.message);
                    }
                }
            });
        },
        success:function (index,layero) {//窗口加载成功
        }
    });
}